<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
body{
	padding:0px;
	margin:0px;
}
table{
	width: 99%;
}
table th,td{
	border: 1px solid #cccccc;
	font-size: 14px;
	font-family: serif;
	text-align :left;
}
</style>
</head>
<body>
<div id="loginlog_div">
	<#if loginlogs??>
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td>登录名</td>
				<td>登录IP</td>
				<td>登录时间</td>
				<td>登录结果</td>
			</tr>
		<#list loginlogs as log>
			<tr <#if log.logResult == Loginlog.logResult_login_success>style="color:green;"<#else>style="color:red;"</#if>>
				<td>${log.pmuser.name?html}</td>
				<td>${log.loginIP}</td>
				<td>${log.loginTime?datetime?string("yyyy-MM-dd HH:mm:ss")}</td>
				<td>
					${this.obtainLogResultStr(log.logResult)}
				</td>
			</tr>
		</#list>
	</table>
	<#else>
		没有失败的记录
	</#if>
</div>
</body>
<script type="text/javascript">
(function(){
	window.parent.document.getElementById("resultpage").height=document.getElementById("loginlog_div").clientHeight;
})();
</script>
</html>